<?php
$this->breadcrumbs=array(
	'Rating',
);?>
<h1><?php echo $this->id . '/' . $this->action->id; ?></h1>

<p>
	You may change the content of this page by modifying
	the file <tt><?php echo __FILE__; ?></tt>.
</p>

<?php // Star View Rating
		$this->widget('CStarRating',array(
						'name'=>'rating',
					//	'value'=>(int)$model->point(),
						'callback'=>"function()
						{	
							$(this).rating('disable');
							var postdata =  {'bookrate':{ 'value':$(this).val(), 'id':\"$model->idbook\" }};// Json
							$.ajax(
							{
								type: 'POST',
								url: '?r=rating/RateIt',
								data: postdata,
								success: function(msg){alert( 'You chose score: ' + msg );},
							}
							);
						}"
						));
		//End CStarRating
		 ?>